import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/login',
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/tea/HomeView.vue')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import( '../views/tea/UserView.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import( '../views/tea/LoginView.vue')
  },
  {
    path: '/test',
    name:  'test',
    component: () => import( '../views/tea/TestView.vue')
  },
  {
    path: '/machines',
    name: 'machines',
    component: () => import( '../views/tea/MachinesView.vue')
  },
  {
    path: '/personalCenter',
    name: 'personalCenter',
    component: () => import( '../views/tea/PersonalCenterView.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
